package com.example.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName job_info
 */
@TableName(value ="job_info")
@Data
public class JobInfo implements Serializable {
    /**
     * 
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 
     */
    @TableField(value = "job_id")
    private Integer jobId;

    /**
     * 审核人的identity
     */
    @TableField(value = "examine_user")
    private Integer examineUser;

    /**
     * 审核结果
     */
    @TableField(value = "examine_option")
    private String examineOption;

    /**
     * 审核原因
     */
    @TableField(value = "examine_info")
    private String examineInfo;

    /**
     * 学生的identity
     */
    @TableField(value = "student")
    private Integer student;

    /**
     * 学生的操作类型
     */
    @TableField(value = "stu_option")
    private Integer stuOption;

    /**
     * 学生对订单的评价
     */
    @TableField(value = "stu_info")
    private String stuInfo;

    /**
     * 发布人的identitfy
     */
    @TableField(value = "publish")
    private Integer publish;

    /**
     * 发布人的操作类型
     */
    @TableField(value = "publish_option")
    private Integer publishOption;

    /**
     * 发布人的对订单的评价
     */
    @TableField(value = "publish_info")
    private String publishInfo;

    /**
     * 发布时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        JobInfo other = (JobInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getJobId() == null ? other.getJobId() == null : this.getJobId().equals(other.getJobId()))
            && (this.getExamineUser() == null ? other.getExamineUser() == null : this.getExamineUser().equals(other.getExamineUser()))
            && (this.getExamineOption() == null ? other.getExamineOption() == null : this.getExamineOption().equals(other.getExamineOption()))
            && (this.getExamineInfo() == null ? other.getExamineInfo() == null : this.getExamineInfo().equals(other.getExamineInfo()))
            && (this.getStudent() == null ? other.getStudent() == null : this.getStudent().equals(other.getStudent()))
            && (this.getStuInfo() == null ? other.getStuInfo() == null : this.getStuInfo().equals(other.getStuInfo()))
            && (this.getPublish() == null ? other.getPublish() == null : this.getPublish().equals(other.getPublish()))
            && (this.getPublishInfo() == null ? other.getPublishInfo() == null : this.getPublishInfo().equals(other.getPublishInfo()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getJobId() == null) ? 0 : getJobId().hashCode());
        result = prime * result + ((getExamineUser() == null) ? 0 : getExamineUser().hashCode());
        result = prime * result + ((getExamineInfo() == null) ? 0 : getExamineInfo().hashCode());
        result = prime * result + ((getStudent() == null) ? 0 : getStudent().hashCode());
        result = prime * result + ((getStuInfo() == null) ? 0 : getStuInfo().hashCode());
        result = prime * result + ((getPublish() == null) ? 0 : getPublish().hashCode());
        result = prime * result + ((getPublishInfo() == null) ? 0 : getPublishInfo().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", job_id=").append(jobId);
        sb.append(", examine_user=").append(examineUser);
        sb.append(", examine_user=").append(examineOption);
        sb.append(", examine_info=").append(examineInfo);
        sb.append(", student=").append(student);
        sb.append(", stu_info=").append(stuInfo);
        sb.append(", stu_option=").append(stuOption);
        sb.append(", publish=").append(publish);
        sb.append(", publish_option=").append(publishOption);
        sb.append(", publish_info=").append(publishInfo);
        sb.append(", create_time=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}